{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Johor Bahru',\n",
       " 'Batu Pahat',\n",
       " 'Kluang',\n",
       " 'Kulai',\n",
       " 'Muar',\n",
       " 'Kota Tinggi',\n",
       " 'Segamat',\n",
       " 'Pontian',\n",
       " 'Tangkak',\n",
       " 'Mersing',\n",
       " 'Sungai Petani',\n",
       " 'Alor Setar',\n",
       " 'Kulim',\n",
       " 'Kubang Pasu',\n",
       " 'Baling',\n",
       " 'Pendang',\n",
       " 'Langkawi',\n",
       " 'Yan',\n",
       " 'Sik',\n",
       " 'Padang Terap',\n",
       " 'Pokok Sena',\n",
       " 'Bandar Baharu',\n",
       " 'Kota Bharu',\n",
       " 'Pasir Mas',\n",
       " 'Tumpat',\n",
       " 'Bachok',\n",
       " 'Tanah Merah',\n",
       " 'Pasir Puteh',\n",
       " 'Kuala Krai',\n",
       " 'Machang',\n",
       " 'Gua Musang',\n",
       " 'Jeli',\n",
       " 'Lojing',\n",
       " 'Melaka Tengah',\n",
       " 'Alor Gajah',\n",
       " 'Jasin',\n",
       " 'Seremban',\n",
       " 'Jempol',\n",
       " 'Port Dickson',\n",
       " 'Tampin',\n",
       " 'Kuala Pilah',\n",
       " 'Rembau',\n",
       " 'Jelebu',\n",
       " 'Kuantan',\n",
       " 'Temerloh',\n",
       " 'Bentong',\n",
       " 'Maran',\n",
       " 'Rompin',\n",
       " 'Pekan',\n",
       " 'Bera',\n",
       " 'Raub',\n",
       " 'Jerantut',\n",
       " 'Lipis',\n",
       " 'Cameron Highlands',\n",
       " 'Kinta',\n",
       " 'Larut, Matang dan Selama',\n",
       " 'Manjung',\n",
       " 'Hilir Perak',\n",
       " 'Kerian',\n",
       " 'Batang Padang',\n",
       " 'Kuala Kangsar',\n",
       " 'Perak Tengah',\n",
       " 'Hulu Perak',\n",
       " 'Kampar',\n",
       " 'Muallim',\n",
       " 'Bagan Datuk',\n",
       " 'Perlis',\n",
       " 'Timur Laut Pulau Pinang',\n",
       " 'Seberang Perai Tengah',\n",
       " 'Seberang Perai Utara',\n",
       " 'Barat Daya Pulau Pinang',\n",
       " 'Seberang Perai Selatan',\n",
       " 'Kota Kinabalu',\n",
       " 'Tawau',\n",
       " 'Sandakan',\n",
       " 'Lahad Datu',\n",
       " 'Keningau',\n",
       " 'Kinabatangan',\n",
       " 'Semporna',\n",
       " 'Papar',\n",
       " 'Penampang',\n",
       " 'Beluran',\n",
       " 'Tuaran',\n",
       " 'Ranau',\n",
       " 'Kota Belud',\n",
       " 'Kudat',\n",
       " 'Kota Marudu',\n",
       " 'Beaufort',\n",
       " 'Kunak',\n",
       " 'Tenom',\n",
       " 'Putatan',\n",
       " 'Pitas',\n",
       " 'Tambunan',\n",
       " 'Tongod',\n",
       " 'Sipitang',\n",
       " 'Nabawan',\n",
       " 'Kuala Penyu',\n",
       " 'Kuching',\n",
       " 'Miri',\n",
       " 'Sibu',\n",
       " 'Bintulu',\n",
       " 'Serian',\n",
       " 'Kota Samarahan',\n",
       " 'Sri Aman',\n",
       " 'Marudi',\n",
       " 'Betong',\n",
       " 'Sarikei',\n",
       " 'Kapit',\n",
       " 'Bau',\n",
       " 'Limbang',\n",
       " 'Saratok',\n",
       " 'Mukah',\n",
       " 'Simunjan',\n",
       " 'Lawas',\n",
       " 'Belaga',\n",
       " 'Lundu',\n",
       " 'Asajaya',\n",
       " 'Daro',\n",
       " 'Tatau',\n",
       " 'Maradong',\n",
       " 'Kanowit',\n",
       " 'Lubok Antu',\n",
       " 'Selangau',\n",
       " 'Song',\n",
       " 'Dalat',\n",
       " 'Matu',\n",
       " 'Julau',\n",
       " 'Pakan',\n",
       " 'Tanjung Manis',\n",
       " 'Bukit Mabong',\n",
       " 'Telang Usan',\n",
       " 'Tebedu',\n",
       " 'Subis',\n",
       " 'Sebauh',\n",
       " 'Marudi',\n",
       " 'Beluru',\n",
       " 'Kabong',\n",
       " 'Gedong',\n",
       " 'Siburan',\n",
       " 'Pantu',\n",
       " 'Lingga',\n",
       " 'Sebuyau',\n",
       " 'Petaling',\n",
       " 'Hulu Langat',\n",
       " 'Klang',\n",
       " 'Gombak',\n",
       " 'Kuala Langat',\n",
       " 'Sepang',\n",
       " 'Kuala Selangor',\n",
       " 'Hulu Selangor',\n",
       " 'Sabak Bernam',\n",
       " 'Kuala Terengganu',\n",
       " 'Kemaman',\n",
       " 'Dungun',\n",
       " 'Besut',\n",
       " 'Marang',\n",
       " 'Hulu Terengganu',\n",
       " 'Setiu',\n",
       " 'Kuala Nerus',\n",
       " 'Kuala Lumpur',\n",
       " 'Labuan',\n",
       " 'Putrajaya']"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "x = \"\"\"\n",
    "1\tJohor Bahru\t406,871\t704,471\t1,064,881\t1,386,569\t1,558,300\n",
    "2\tBatu Pahat\t274,625\t294,056\t335,368\t417,458\t469,000\n",
    "3\tKluang\t179,791\t224,424\t254,631\t298,332\t337,800\n",
    "4\tKulai\t-\t-\t-\t251,659\t283,400\n",
    "5\tMuar\t291,129\t301,804\t328,695\t247,957\t277,800\n",
    "6\tKota Tinggi\t114,267\t174,425\t192,220\t193,210\t220,800\n",
    "7\tSegamat\t150,501\t177,561\t178,620\t189,820\t213,000\n",
    "8\tPontian\t121,031\t129,356\t143,729\t155,541\t175500\n",
    "9\tTangkak\t-\t-\t-\t136,853\t153,500\n",
    "10\tMersing\t42,208\t63,643\t67,557\t70,894\t81,200\n",
    "Jumlah\t1,580,423\t2,074,297\t2,565,740\t3,348,283\t3,923,800\n",
    "Daerah Johor Bahru merangkumi bandar raya Johor Bharu, Iskandar Puteri dan Pasir Gudang.\n",
    "Daerah Kota Tinggi merangkumi Kota Tinggi dan bandar Pengerang.\n",
    "Daerah [[Batu Pahat\n",
    "Negeri Kedah Darul Aman\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tSungai Petani\t192,308\t254,372\t339,898\t456,605\n",
    "2\tAlor Setar\t279,567\t322,354\t354,433\t366,787\n",
    "3\tKulim\t92,525\t128,356\t191,160\t287,694\n",
    "4\tKubang Pasu\t129,808\t157,963\t186,265\t220,740\n",
    "5\tBaling\t104,858\t114,845\t124,947\t135,646\n",
    "6\tPendang\t75,861\t83,092\t89,790\t94,962\n",
    "7\tLangkawi\t28,340\t42,938\t69,597\t94,777\n",
    "8\tYan\t59,030\t60,483\t62,497\t68,319\n",
    "9\tSik\t43,366\t54,466\t59,691\t67,378\n",
    "10\tPadang Terap\t40,428\t50,726\t55,899\t62,896\n",
    "11\tPokok Sena\t-\t-\t-\t49,506\n",
    "12\tBandar Baharu\t31,724\t33,006\t37,932\t42,341\n",
    "Jumlah\t1,077,815\t1,304,800\t1,572,107\t1,947,651\n",
    "Bandar Sungai Petani mewakili Daerah Kuala Muda\n",
    "Bandar Alor Setar mewakili Daerah Kota Setar dan daerah Pokok Sena.\n",
    "Negeri Kelantan Darul Naim\n",
    "Tangga\tJajahan\n",
    "(Daerah)\n",
    "\n",
    "Populasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tKota Bharu\t275,986\t366,770\t400,321\t491,237\n",
    "2\tPasir Mas\t118,153\t150,035\t162,296\t189,292\n",
    "3\tTumpat\t85,952\t116,044\t130,027\t153,976\n",
    "4\tBachok\t73,953\t98,557\t109,786\t133,152\n",
    "5\tTanah Merah\t61,996\t94,611\t101,450\t121,319\n",
    "6\tPasir Puteh\t80,959\t96,348\t104,734\t117,383\n",
    "7\tKuala Krai\t62,301\t90,830\t91,619\t109,461\n",
    "8\tMachang\t58,040\t71,584\t77,921\t93,087\n",
    "9\tGua Musang\t18,578\t63,816\t74,988\t90,087\n",
    "10\tJeli\t23,352\t32,720\t36,057\t40,637\n",
    "11\tLojing\t-\t-\t-\t-\n",
    "Jumlah\t859,270\t1,181,680\t1,289,199\t1,539,601\n",
    "Daerah Lojing baru sahaja dijadikan daerah pada 2010\n",
    "Negeri Melaka\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tMelaka Tengah\t246,163\t296,897\t369,222\t503,127\n",
    "2\tAlor Gajah\t113,083\t116,0404\t130,027\t182,666\n",
    "3\tJasin\t87,523\t92,771\t101,775\t135,317\n",
    "Jumlah\t446,769\t504,502\t602,867\t821,110\n",
    "Bandar Hang Tuah Jaya merangkumi kawasan di bahagian daerah Melaka Tengah, Alor Gajah dan Jasin.\n",
    "Negeri Sembilan Darul Khusus\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tSeremban\t202,790\t263,383\t383,982\t555,935\n",
    "2\tJempol\t67,159\t122,033\t125,151\t116,576\n",
    "3\tPort Dickson\t83,561\t92,171\t109,616\t115,361\n",
    "4\tTampin\t57,507\t72,295\t76,923\t84,889\n",
    "5\tKuala Pilah\t67,345\t68,180\t63,176\t66,092\n",
    "6\tRembau\t36,350\t34,823\t36,809\t42,366\n",
    "7\tJelebu\t36,730\t40,012\t37,120\t39,200\n",
    "Jumlah\t551,442\t691,151\t830,088\t1,021,064\n",
    "Negeri Pahang Darul Makmur\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tKuantan\t170,573\t255,974\t344,706\t461,906\n",
    "2\tTemerloh\t143,188\t186,907\t214,012\t165,451\n",
    "3\tBentong\t72,865\t83,965\t97,467\t119,817\n",
    "4\tMaran\t91,187\t110,264\t112,626\t115,424\n",
    "5\tRompin\t38,975\t80,251\t101,877\t114,901\n",
    "6\tPekan\t50,058\t86,179\t98,400\t110,663\n",
    "7\tBera\t-\t-\t-\t97,882\n",
    "8\tRaub\t64,414\t73,085\t79,432\t95,506\n",
    "9\tJerantut\t59,043\t74,547\t81,215\t91,096\n",
    "10\tLipis\t56,996\t68,276\t73,391\t89,730\n",
    "11\tCameron Highlands\t21,502\t25,555\t28,050\t38,471\n",
    "Jumlah\t768,801\t1,036,724\t1,231,176\t1,500,817\n",
    "Negeri Perak Darul Ridzuan\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tKinta\t564,886\t627,899\t751,825\t866,772\n",
    "2\tLarut, Matang dan Selama\t249,550\t271,882\t273,321\t334,073\n",
    "3\tManjung\t143,610\t168,331\t191,004\t232,277\n",
    "4\tHilir Perak\t203,028\t202,059\t191,098\t208,570\n",
    "5\tKerian\t155,765\t148,720\t152,651\t179,706\n",
    "6\tBatang Padang\t136,473\t154,686\t152,137\t179,494\n",
    "7\tKuala Kangsar\t146,292\t146,684\t154,048\t159,505\n",
    "8\tPerak Tengah\t72,679\t75,574\t82,103\t101,128\n",
    "9\tHulu Perak\t71,372\t81,636\t82,195\t91,218\n",
    "10\tKampar\t-\t-\t-\t-\n",
    "11\tMuallim\t-\t-\t-\t-\n",
    "12\tBagan Datuk\t-\t-\t-\t-\n",
    "Jumlah\t1,743,655\t1,880,016\t2,030,382\t2,352,743\n",
    "Daerah Kampar[2], Muallim dan Bagan Datuk[3] baru sahaja dijadikan daerah baru bagi menyusun semula pentadbiran Perak dengan tersusun.\n",
    "Daerah Kinta merangkumi bandar raya Ipoh dan Batu Gajah\n",
    "Daerah Larut, Matang dan Selama merangkumi bandar Taiping dan Selama\n",
    "Daerah Hulu Perak merangkumi Lenggong, Gerik dan Pengkalan Hulu.\n",
    "Negeri Perlis Indera Kayangan\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tPerlis\t144,782\t183,824\t198,335\t231,541\n",
    "Majlis Perbandaran Kangar mentadbir seluruh kawasan tempatan negeri Perlis.\n",
    "Negeri Pulau Pinang\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tTimur Laut Pulau Pinang\t391,400\t395,714\t414,082\t520,242\n",
    "2\tSeberang Perai Tengah\t161,975\t236,270\t291,876\t371,975\n",
    "3\tSeberang Perai Utara\t199,449\t224,647\t243,316\t295,979\n",
    "4\tBarat Daya Pulau Pinang\t76,390\t122,764\t159,019\t202,142\n",
    "5\tSeberang Perai Selatan\t71,558\t84,771\t117,208\t171,045\n",
    "Jumlah\t900,772\t1,065,075\t1,225,501\t1,561,383\n",
    "Majlis Bandaraya Pulau Pinang mentadbir kawasan tempatan daerah Timur Laut Pulau Pinang dan Barat Daya Pulau Pinang.\n",
    "Majlis Bandaraya Seberang Perai mentadbir kawasan tempatan daerah Seberang Perai Tengah, Seberang Perai Utara dan Seberang Perai Selatan.\n",
    "Negeri Sabah\n",
    "Tangga\n",
    "\n",
    "Daerah\n",
    "\n",
    "Populasi 2010\n",
    "\n",
    "1\tKota Kinabalu\t462,963\n",
    "2\tTawau\t412,375\n",
    "3\tSandakan\t409,056\n",
    "4\tLahad Datu\t206,861\n",
    "5\tKeningau\t177,735\n",
    "6\tKinabatangan\t150,327\n",
    "7\tSemporna\t137,868\n",
    "8\tPapar\t128,434\n",
    "9\tPenampang\t125,913\n",
    "10\tBeluran\t106,632\n",
    "11\tTuaran\t105,435\n",
    "12\tRanau\t95,800\n",
    "13\tKota Belud\t93,180\n",
    "14\tKudat\t85,404\n",
    "15\tKota Marudu\t68,289\n",
    "16\tBeaufort\t66,406\n",
    "17\tKunak\t62,851\n",
    "18\tTenom\t56,597\n",
    "19\tPutatan\t55,864\n",
    "20\tPitas\t38,764\n",
    "21\tTambunan\t36,297\n",
    "22\tTongod\t36,192\n",
    "23\tSipitang\t35,764\n",
    "24\tNabawan\t32,309\n",
    "25\tKuala Penyu\t19,426\n",
    "Jumlah\t3,206,742\n",
    "Negeri Sarawak\n",
    "Tangga\n",
    "\n",
    "Daerah\n",
    "\n",
    "Populasi 2010\n",
    "\n",
    "1\tKuching\t617,887\n",
    "2\tMiri\t300,543\n",
    "3\tSibu\t247,995\n",
    "4\tBintulu\t189,146\n",
    "5\tSerian\t91,599\n",
    "6\tKota Samarahan\t87,923\n",
    "7\tSri Aman\t66,790\n",
    "8\tMarudi\t64,018\n",
    "9\tBetong\t62,131\n",
    "10\tSarikei\t58,021\n",
    "11\tKapit\t56,053\n",
    "12\tBau\t54,246\n",
    "13\tLimbang\t48,186\n",
    "14\tSaratok\t46,094\n",
    "15\tMukah\t42,922\n",
    "16\tSimunjan\t39,226\n",
    "17\tLawas\t38,385\n",
    "18\tBelaga\t36,114\n",
    "19\tLundu\t33,413\n",
    "20\tAsajaya\t31,874\n",
    "21\tDaro\t30,671\n",
    "22\tTatau\t30,383\n",
    "23\tMaradong\t29,421\n",
    "24\tKanowit\t28,954\n",
    "25\tLubok Antu\t27,984\n",
    "26\tSelangau\t22,819\n",
    "27\tSong\t20,595\n",
    "28\tDalat\t19,062\n",
    "29\tMatu\t17,369\n",
    "30\tJulau\t15,816\n",
    "31\tPakan\t15,480\n",
    "32\tTanjung Manis\t-\n",
    "33\tBukit Mabong\t-\n",
    "34\tTelang Usan\t-\n",
    "35\tTebedu\t-\n",
    "36\tSubis\t-\n",
    "37\tSebauh\t-\n",
    "38\tMarudi\t-\n",
    "39\tBeluru\t-\n",
    "40\tKabong\t-\n",
    "41\tGedong\t-\n",
    "42\tSiburan\t-\n",
    "43\tPantu\t-\n",
    "44\tLingga\t-\n",
    "45\tSebuyau\t-\n",
    "Jumlah\t2,440,737\n",
    "[1]\n",
    "Negeri Selangor Darul Ehsan\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tPetaling\t360,056\t633,165\t1,181,034\t1,812,633\n",
    "2\tHulu Langat\t177,877\t413,900\t865,514\t1,156,585\n",
    "3\tKlang\t279,349\t406,994\t648,918\t861,189\n",
    "4\tGombak\t166,059\t352,649\t553,410\t682,226\n",
    "5\tKuala Langat\t101,578\t130,090\t189,983\t224,648\n",
    "6\tSepang\t46,025\t54,671\t97,896\t211,361\n",
    "7\tKuala Selangor\t110,366\t123,052\t157,288\t209,590\n",
    "8\tHulu Selangor\t81,679\t82,814\t142,771\t198,132\n",
    "9\tSabak Bernam\t103,261\t99,824\t110,713\t105,777\n",
    "-\tJumlah\t1,426,250\t2,289,236\t3,947,527\t5,462,141\n",
    "Daerah Petaling merangkumi bandar raya Shah Alam,Petaling Jaya dan Subang Jaya\n",
    "Daerah Gombak merangkumi bandar Selayang dan Ampang Jaya\n",
    "Daerah Hulu Langat merangkumi bandar Ampang Jaya dan Kajang\n",
    "Daerah Klang merangkumi bandar Klang dan bandar raya Shah Alam\n",
    "Negeri Terengganu Darul Iman\n",
    "Tangga\tDaerah\tPopulasi 1980\tPopulasi 1990\tPopulasi 2000\tPopulasi 2010\n",
    "1\tKuala Terengganu\t203,979\t274,489\t298,149\t343,284\n",
    "2\tKemaman\t64,899\t111,901\t136,502\t171,383\n",
    "3\tDungun\t58,360\t102,897\t128,582\t154,932\n",
    "4\tBesut\t79,253\t107,900\t120,538\t140,952\n",
    "5\tMarang\t45,641\t69,637\t83,164\t97,857\n",
    "6\tHulu Terengganu\t43,459\t56,986\t62,262\t72,052\n",
    "7\tSetiu\t29,664\t42,434\t50,493\t55,517\n",
    "8\tKuala Nerus\t-\t-\t-\t-\n",
    "Jumlah\t525,255\t770,931\t879,691\t1,035,977\n",
    "Majlis Bandaraya Kuala Terengganu mentadbir kawasan tempatan daerah Kuala Terengganu dan daerah Kuala Nerus.\n",
    "Wilayah Persekutuan Malaysia\n",
    "Tangga\tDaerah\tPopulasi 2010\n",
    "1\tKuala Lumpur\t1,674,621\n",
    "2\tLabuan\t86,908\n",
    "3\tPutrajaya\t72,413\n",
    "\"\"\"\n",
    "\n",
    "digits = '0123456789'\n",
    "\n",
    "x = x.split('\\n')\n",
    "x = [i.split('\\t') for i in x if len(i) > 1 and '\\t' in i]\n",
    "x = [i[1] for i in x if i[0][0] in digits]\n",
    "x"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Alor Gajah',\n",
       " 'Alor Setar',\n",
       " 'Asajaya',\n",
       " 'Bachok',\n",
       " 'Bagan Datuk',\n",
       " 'Baling',\n",
       " 'Bandar Baharu',\n",
       " 'Barat Daya Pulau Pinang',\n",
       " 'Batang Padang',\n",
       " 'Batu Pahat',\n",
       " 'Bau',\n",
       " 'Beaufort',\n",
       " 'Belaga',\n",
       " 'Beluran',\n",
       " 'Beluru',\n",
       " 'Bentong',\n",
       " 'Bera',\n",
       " 'Besut',\n",
       " 'Betong',\n",
       " 'Bintulu',\n",
       " 'Bukit Mabong',\n",
       " 'Cameron Highlands',\n",
       " 'Dalat',\n",
       " 'Daro',\n",
       " 'Dungun',\n",
       " 'Gedong',\n",
       " 'Gombak',\n",
       " 'Gua Musang',\n",
       " 'Hilir Perak',\n",
       " 'Hulu Langat',\n",
       " 'Hulu Perak',\n",
       " 'Hulu Selangor',\n",
       " 'Hulu Terengganu',\n",
       " 'Jasin',\n",
       " 'Jelebu',\n",
       " 'Jeli',\n",
       " 'Jempol',\n",
       " 'Jerantut',\n",
       " 'Johor Bahru',\n",
       " 'Julau',\n",
       " 'Kabong',\n",
       " 'Kampar',\n",
       " 'Kanowit',\n",
       " 'Kapit',\n",
       " 'Kemaman',\n",
       " 'Keningau',\n",
       " 'Kerian',\n",
       " 'Kinabatangan',\n",
       " 'Kinta',\n",
       " 'Klang',\n",
       " 'Kluang',\n",
       " 'Kota Belud',\n",
       " 'Kota Bharu',\n",
       " 'Kota Kinabalu',\n",
       " 'Kota Marudu',\n",
       " 'Kota Samarahan',\n",
       " 'Kota Tinggi',\n",
       " 'Kuala Kangsar',\n",
       " 'Kuala Krai',\n",
       " 'Kuala Langat',\n",
       " 'Kuala Lumpur',\n",
       " 'Kuala Nerus',\n",
       " 'Kuala Penyu',\n",
       " 'Kuala Pilah',\n",
       " 'Kuala Selangor',\n",
       " 'Kuala Terengganu',\n",
       " 'Kuantan',\n",
       " 'Kubang Pasu',\n",
       " 'Kuching',\n",
       " 'Kudat',\n",
       " 'Kulai',\n",
       " 'Kulim',\n",
       " 'Kunak',\n",
       " 'Labuan',\n",
       " 'Lahad Datu',\n",
       " 'Langkawi',\n",
       " 'Larut, Matang dan Selama',\n",
       " 'Lawas',\n",
       " 'Limbang',\n",
       " 'Lingga',\n",
       " 'Lipis',\n",
       " 'Lojing',\n",
       " 'Lubok Antu',\n",
       " 'Lundu',\n",
       " 'Machang',\n",
       " 'Manjung',\n",
       " 'Maradong',\n",
       " 'Maran',\n",
       " 'Marang',\n",
       " 'Marudi',\n",
       " 'Marudi',\n",
       " 'Matu',\n",
       " 'Melaka Tengah',\n",
       " 'Mersing',\n",
       " 'Miri',\n",
       " 'Muallim',\n",
       " 'Muar',\n",
       " 'Mukah',\n",
       " 'Nabawan',\n",
       " 'Padang Terap',\n",
       " 'Pakan',\n",
       " 'Pantu',\n",
       " 'Papar',\n",
       " 'Pasir Mas',\n",
       " 'Pasir Puteh',\n",
       " 'Pekan',\n",
       " 'Penampang',\n",
       " 'Pendang',\n",
       " 'Perak Tengah',\n",
       " 'Perlis',\n",
       " 'Petaling',\n",
       " 'Pitas',\n",
       " 'Pokok Sena',\n",
       " 'Pontian',\n",
       " 'Port Dickson',\n",
       " 'Putatan',\n",
       " 'Putrajaya',\n",
       " 'Ranau',\n",
       " 'Raub',\n",
       " 'Rembau',\n",
       " 'Rompin',\n",
       " 'Sabak Bernam',\n",
       " 'Sandakan',\n",
       " 'Saratok',\n",
       " 'Sarikei',\n",
       " 'Sebauh',\n",
       " 'Seberang Perai Selatan',\n",
       " 'Seberang Perai Tengah',\n",
       " 'Seberang Perai Utara',\n",
       " 'Sebuyau',\n",
       " 'Segamat',\n",
       " 'Selangau',\n",
       " 'Semporna',\n",
       " 'Sepang',\n",
       " 'Seremban',\n",
       " 'Serian',\n",
       " 'Setiu',\n",
       " 'Sibu',\n",
       " 'Siburan',\n",
       " 'Sik',\n",
       " 'Simunjan',\n",
       " 'Sipitang',\n",
       " 'Song',\n",
       " 'Sri Aman',\n",
       " 'Subis',\n",
       " 'Sungai Petani',\n",
       " 'Tambunan',\n",
       " 'Tampin',\n",
       " 'Tanah Merah',\n",
       " 'Tangkak',\n",
       " 'Tanjung Manis',\n",
       " 'Tatau',\n",
       " 'Tawau',\n",
       " 'Tebedu',\n",
       " 'Telang Usan',\n",
       " 'Temerloh',\n",
       " 'Tenom',\n",
       " 'Timur Laut Pulau Pinang',\n",
       " 'Tongod',\n",
       " 'Tuaran',\n",
       " 'Tumpat',\n",
       " 'Yan']"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sorted(x)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
